package com.cskaoyan.bean.wx.catalog.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Name : TopicController.java
 * @Time : 2021/8/12 19:36
 * @Author : creamycandy
 * @Software : IntelliJ IDEA
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseCatalogDataVo<T> {
    T currentCategory;
    List<T> categoryList;
    List<T> currentSubCategory;

    public BaseCatalogDataVo(T currentCategory, List<T> currentSubCategory) {
        this.currentCategory = currentCategory;
        this.currentSubCategory = currentSubCategory;
    }

    public static <T> BaseCatalogDataVo index(T currentCategory, List<T> categoryList, List<T> currentSubCategory) {
        return new BaseCatalogDataVo(currentCategory, categoryList, currentSubCategory);
    }

    public static <T> BaseCatalogDataVo current(T currentCategory, List<T> currentSubCategory) {
        return new BaseCatalogDataVo(currentCategory, currentSubCategory);
    }
}
